<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="jquery/jquery-1.6.1.js"></script>
<script type="text/javascript" src="jquery/jquery.validate.min.js"></script>
<script> 
$(function(){
	$("#add").click(function(){
	var name=$("#name").val();
	if(name==""){
    alert("请输入餐桌名")
    $("#name").focus();
     return false;
     }
    else{$("#form1").submit()}
    
	})
})
</script>

<style type="text/css">


#s{
   height:40px;
   width:490px;
   margin-bottom:5px;
   }
  body{
	margin:0;
	padding:20px;
	background-image:url("images/innerBJ.jpg");
	background-repeat:no-repeat;
	font:80% Arial, Helvetica, sans-serif;
	color:#555;
	line-height:100%;
}  
</style>
<script type="text/javascript" src="jquery/jquery-1.6.1.js"></script>
<script type="text/javascript" src="jquery/jquery.validate.min.js"></script>
<script type="text/javascript"></script>
</head>


<body >
<% request.setCharacterEncoding("UTF-8"); %>
	<center>
	
<form id=form1" action="action/addTypeAction.jsp" method="post">
		
		 
		  
			  <p  class="STYLE2" > 名称
			    <input type="text" name="name" id="name"/> 
			  </p>
			   <p align="center">
               <button  type="submit" id="add">确认</button>&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value="重置">
                </p>
			  
		
		</form>
		
		
	</center>
</body>
</html>
